import requests

if __name__ == '__main__':
    url = "http://127.0.0.1:8080"
    resp = requests.post(url+"/shop/mlogin",data={"username":"lilili","password":"123456"})
    print(resp.text)

    # json 用于指定post请求为raw类型  为JSON格式的参数使用